package com.yunji.hushuang.plugin.demo.source;

import java.util.Random;

/**
 * @author hushuang
 * @since 2019/10/16
 */
public class DemoTarget implements IExecutor {

    @Override
    public Result execute(DemoParam param) {
        try {
            System.out.println("DemoTarget 执行中，请稍候。。。");
            Thread.sleep(1000L + new Random().nextInt(3000));
            return Result.success();
        } catch (InterruptedException e) {
            return Result.fail();
        }
    }
}
